import request from "@/utils/request";
import { CURDApiBase } from "../curd-api-base";

export default new (class ScreenApiByq extends CURDApiBase {
  constructor() {
    super("/wms-order/api/screen/byq");
  }

  /** 根据项目id查询物料清单（含清单物料数据及物料库存数据） */
  yearOutbound(data) {
    return request({
      url: `${this.baseUrl}/yearOutbound`,
      method: "post",
      data,
    });
  }

  /** 月度变压器产量 */
  monthOutbound(data) {
    return request({
      url: `${this.baseUrl}/monthOutbound`,
      method: "post",
      data,
    });
  }

  /** 库存预警 */
  inventoryAlarm(data?: any) {
    return request({
      url: `${this.baseUrl}/inventoryAlarm`,
      method: "post",
      data,
    });
  }

  /** 未到货预警 */
  notDelivered(data?: any) {
    return request({
      url: `${this.baseUrl}/notDelivered`,
      method: "post",
      data,
    });
  }

  /** 	当日入库记录 */
  importGoods(data?: any) {
    return request({
      url: `${this.baseUrl}/importGoods`,
      method: "post",
      data,
    });
  }

  /** 	当日出库记录 */
  exportGoods(data?: any) {
    return request({
      url: `${this.baseUrl}/exportGoods`,
      method: "post",
      data,
    });
  }

  /**月度成品入库统计 */
  productWarehousing(data?: any) {
    return request({
      url: `${this.baseUrl}/productWarehousing`,
      method: "post",
      data,
    });
  }

  /**月度销量 */
  monthDelivery(data?: any) {
    return request({
      url: `${this.baseUrl}/monthDelivery`,
      method: "post",
      data,
    });
  }

  /**月度项目完成度 */
  monthProjectPercent(data?: any) {
    return request({
      url: `${this.baseUrl}/monthProjectPercent`,
      method: "post",
      data,
    });
  }
})();
